From 7b97cafdde69519c69d7cd56f572c6a1cc73f723 Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Fri, 27 May 2005 10:45:50 +0000 Subject: [PATCH] bitkeeper revision 1.1574 (4296fa5erB8OK0RVQ0VDZFNWsbl4Qg) xm's pincpu has a problem handling the cpu parameter if the cpu number is more than one digit. This patch fixes it. Signed-off-by: Nguyen Anh Quynh --- tools/python/xen/xm/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/python/xen/xm/main.py b/tools/python/xen/xm/main.py index 34dee133b8..06aaed8438 100644 --- a/tools/python/xen/xm/main.py +++ b/tools/python/xen/xm/main.py @@ -512,7 +512,7 @@ class ProgPincpu(Prog): cpus = [] cpumap = 0 for c in cpulist.split(','): - if len(c) > 1: + if c.find('-') != -1: (x,y) = c.split('-') for i in range(int(x),int(y)+1): cpus.append(int(i)) -- 2.30.2